package com.youth.entity.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.youth.result.StatusEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.groups.Default;
import java.io.Serializable;
import java.util.Date;

/**
 * @ClassName Commodity
 * @Description: TODO 商品信息持久化对象
 * @Author yjwu
 * @Date 2019/10/21 21:11
 **/
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "commodityvo", description = "商品视图对象")
public class CommodityVO implements Serializable {
    private static final Long serialVersionUID = 1L;

    @ApiModelProperty(value = "商品名称", required = true)
    @NotEmpty(message = "{name.empty}", groups = {Default.class})
    private String name;
    @ApiModelProperty(value = "商品编号")
    private String code;
    @ApiModelProperty(value = "三级类型id")
    private int typeThreeId;
    @ApiModelProperty(value = "标题")
    private String headline;
    private int placeAreaId;
    @Builder.Default
    private int doHot = 0;
    private String keywords;
    private double price;
    private int storageNumber;
    private int soldNumber;
    private String description;
    private String remark;
}
